/**
 * The MIT License	
 * 
 * Copyright (c) 2009 Ghost Interactive
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 * 
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software
 * 
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 * 
 * ghostinteractive@gmail.com
 * http://ghostinteractive.net/blog
 * @author Jeremy brown
 */

package net.ghostinteractive.overlays
{
	import flash.display.CapsStyle;
	import flash.display.JointStyle;
	import flash.geom.Point;
	
	public class PolylineSegment
	{
		protected var _alpha:Number;
		public function get alpha():Number { return _alpha; }
		
		protected var _color:uint;
		public function get color():uint { return _color; }
		
		protected var _capsStyle:String;
		public function get capsStyle():String { return _capsStyle; }
		
		protected var _end:Point;
		public function get end():Point { return _end };
		
		protected var _jointStyle:String;
		public function get jointStyle():String { return _jointStyle; }
		
		protected var _miterLimit:Number;
		public function get miterLimit():Number { return _miterLimit; }
		
		protected var _start:Point;
		public function get start():Point { return _start; }
		
		protected var _thickness:int;
		public function get thickness():int { return _thickness };
		
		protected var _visible:Boolean;
		public function get visible():Boolean { return _visible };
		
		/**
	 	 * Constructor
		 * PolylineSegment defines line properties, it does not actually draw the line, 
		 * it only stores properties that inform a PolyLineLayer of what to draw
		 * To use you must sub-class and define values for _start and _end properties
		 */
		public function PolylineSegment()
		{
			_alpha		= 1;
			_capsStyle	= CapsStyle.SQUARE;
			_color 		= 0xCC0000;
			_visible	= true;
			_thickness 	= 1;
			_jointStyle	= JointStyle.MITER;
			_miterLimit		= 3;
		}

	}
}